//
//  UIViewController+NEDNaivigationItem.h
//  MoreCoin
//
//  Created by 林宁宁 on 2019/9/19.
//  Copyright © 2019 MoreCoin. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIViewController (NEDNaivigationItem)


@property (retain, nonatomic) UIButton * ned_rightNavcButton;
@property (retain, nonatomic) UIButton * ned_leftNavcButton;

/// Items 类型
/// 字符串：为Button的title，有handle和config返回
/// Image：按钮的Image，有handle和config返回
/// View：Bar的Customview直接指定该视图，无handle和config返回

// 左边
-(void)ned_setNavLeftItems:(NSArray *)leftItems;
-(void)ned_setNavLeftItems:(NSArray *)leftItems
                    handle:(void (^ _Nullable)(UIButton * btn, NSInteger index))leftHandleBlock;
-(void)ned_setNavLeftItems:(NSArray *)leftItems
                    handle:(void (^ _Nullable)(UIButton * btn, NSInteger index))leftHandleBlock
                btnConfig:(void (^ _Nullable)(UIButton * btn, NSInteger index))configBlock;

// 右边
-(void)ned_setNavRightItems:(NSArray *)rightItems;
-(void)ned_setNavRightItems:(NSArray *)rightItems
                     handle:(void (^ _Nullable)(UIButton * btn, NSInteger index))rightHandleBlock;
-(void)ned_setNavRightItems:(NSArray *)rightItems
                     handle:(void (^ _Nullable)(UIButton * btn, NSInteger index))rightHandleBlock
                  btnConfig:(void (^ _Nullable)(UIButton * btn, NSInteger index))configBlock;


@end

NS_ASSUME_NONNULL_END
